import { DefaultUser } from "next-auth";

// 用户资料接口
export interface UserProfile {
  id: string;
  name: string;
  email: string;
  image?: string;
  bio?: string;
  jobTitle?: string;
  location?: string;
  joinedAt: Date;
  skills?: string[];
  socialLinks?: {
    github?: string;
    linkedin?: string;
    twitter?: string;
    website?: string;
  };
}

// 用户设置接口
export interface UserSettings {
  id: string;
  userId: string;
  theme: 'light' | 'dark' | 'system';
  themeColor?: string;
  language: 'zh_CN' | 'en_US';
  emailNotifications: boolean;
  pushNotifications: boolean;
  weeklyDigest: boolean;
}

// 用户统计数据接口
export interface UserStats {
  tasksCompleted: number;
  tasksCreated: number;
  projectsJoined: number;
  commentsAdded: number;
  averageTaskCompletionTime?: number; // 单位：小时
  activityByWeekday: number[]; // 按周一至周日的活动数量
  activityByMonth: number[]; // 按月份的活动数量
  
  // 参与的项目
  projects?: {
    id: string;
    name: string;
    role: string;
    joinedAt: string;
  }[];
  
  // 最近的评论
  recentComments?: {
    id: string;
    content: string;
    taskId: string;
    projectId: string;
    createdAt: string;
  }[];
  
  // 最近的任务
  recentTasks?: {
    id: string;
    title: string;
    status: string;
    priority: string;
    projectId: string;
    createdAt: string;
    updatedAt: string;
  }[];
} 